
public class Triangle {
	
	// instance variable
	private int num;
	
	//Constructor method of class
	public Triangle(int num){
		this.num = num;
	}
	
	public boolean isTriangle(double edge1, double edge2, double edge3){
		
		System.out.println("edge1: " + edge1 + " edge2: " + edge2 + " edge3: " + edge3);
		if(edge1 <= 0 || edge2 <=0 || edge3 <=0){
			System.out.println("Illeage edge");
			return false;
		}
		
		
		
		
		
		if(edge1 + edge2 > edge3 && edge1 + edge3 > edge2 && edge2 + edge3 > edge1){
			System.out.println("This is a Triangle.");
			return true;
		}
		else{
			System.out.println("This is not a Triangle");
			return false;
		}
		
		
		
	}
	
	
	
	
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Triangle triangle = new Triangle(8);
		
		triangle.isTriangle(1.0d, 1.0d, 2.0d);
		
	}

}